/**
  This Entity-Class catches all Input that comes from the Clients Mouse.
  @author <a href="mailto:gabriel.credico@googlemail.com">Gabriel Credico</a>
  @class
 */
function MouseInput(){}

MouseInput.prototype = new Entity();

  /** How often should this.update() gets called.
    @type Number
  */
MouseInput.prototype.updateFrequency;

  /** The current X-value of the Clients Mouse.
    @type Number
  */
MouseInput.prototype.mousePosX;

  /** The current Y-value of the Clients Mouse.
    @type Number
  */
MouseInput.prototype.mousePosY;

  /** This method gets called this entiy is added.
  */
MouseInput.prototype.init = function()
{
  document.onmousemove = this.mouseMoved;
}


  /** This method ...
  */
MouseInput.prototype.update = function()
{
}


MouseInput.prototype.mouseMoved = function(evnt)
{
  if (!evnt) {
    evnt = document.event;
  }
  this.mousePosX = evnt.clientX;
  this.mousePosY = evnt.clientY;
}